soda()
	._page('iam_user')
	._api('/v1/iam/user')
	._query(['realName^like^', 'mobile^like^', 'email^like^'])
	._orderBy(['createTime^desc'])
	._run((unit) => {
		// 表格基础配置
		unit.templateTable['cols'] = [
			{fixed: 'left', field: 'realName', title: '姓名', minWidth: 120},
			{fixed: 'left', field: 'mobile', title: '手机号', minWidth: 120},
			{field: 'gender', title: '性别'},
			{field: 'email', title: '电子邮箱', minWidth: 120},
			{field: 'avatar', title: '头像', minWidth: 120},
			{field: 'state', title: '状态',templet(obj) {
			    return unit.sdFormat['json']['get'](unit.globalConstant['enableState'], obj.state, 'value').title;
			}},
			{field: 'createTime', title: '登记时间', minWidth: 120},
		];
		
		// 表格查询配置
		unit.templateTable['search']['components'] = [
			{code:1, name:"realName", title:"姓名", placeholder:"请输入要查询的关键字"},
			{code:1, name:"mobile", title:"电话", placeholder:"请输入要查询的关键字"},
			{code:1, name:"email", title:"邮箱", placeholder:"请输入要查询的关键字"},
		]
		unit.templateTable['search']['submit'] = (data) => {
			unit.sdTable.reload(unit.el['table'], {
				where: unit.sdFormat['query'](unit.filter['vo'], data)
			});
		}
		unit.sdTable['render'](unit.templateTable);
	})
